﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Musicallis
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Account_Register",
                url: "registre-se",
                defaults: new { controller = "Account", action = "Register" }
            );

            routes.MapRoute(
                name: "Account_Login",
                url: "Login",
                defaults: new { controller = "Account", action = "Login" }
            );

            routes.MapRoute(
                name: "Home_Principal",
                url: "HomePage",
                defaults: new { controller = "Home", action = "Principal" }
            );

            routes.MapRoute(
                name: "Home_Musica",
                url: "Músicas",
                defaults: new { controller = "Home", action = "Music" }
            );

            routes.MapRoute(
                name: "Home_PlayList",
                url: "PlayList",
                defaults: new { controller = "Home", action = "PlayList" }
            );

            routes.MapRoute(
                name: "Home_Profile",
                url: "Perfil",
                defaults: new { controller = "Home", action = "Profile" }
            );

            routes.MapRoute(
                name: "Home_Friends",
                url: "Amigos",
                defaults: new { controller = "Home", action = "Friends" }
            );

            routes.MapRoute(
                name: "Home_Forum",
                url: "Forum",
                defaults: new { controller = "Home", action = "Forum" }
            );

            routes.MapRoute(
                name: "Account_Manage",
                url: "Configuracoes",
                defaults: new { controller = "Account", action = "Manage" }
            );

            routes.MapRoute(
                name: "Home_Contact",
                url: "Contato",
                defaults: new { controller = "Home", action = "Contact" }
            );

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}